From 70a3fcfc59839bf8f79469c0b49e4c7e31ad2c99 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 30 Jul 2008 09:20:42 +0100 Subject: [PATCH] x86: Fix the build after c/s 18163 (5fbcbee355e2) Signed-off-by: Liu, Jinsong Signed-off-by: Masaki Kanno Signed-off-by: Keir Fraser --- xen/arch/x86/mm/shadow/multi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 6df3f6e6bb..dec5e9a09f 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -4645,7 +4645,6 @@ static void *emulate_map_dest(struct vcpu *v, u32 bytes, struct sh_emulate_ctxt *sh_ctxt) { - struct segment_register *sreg; unsigned long offset; void *map = NULL; @@ -4658,8 +4657,7 @@ static void *emulate_map_dest(struct vcpu *v, #ifndef NDEBUG /* We don't emulate user-mode writes to page tables */ - sreg = hvm_get_seg_reg(x86_seg_ss, sh_ctxt); - if ( sreg->attr.fields.dpl == 3 ) + if ( hvm_get_seg_reg(x86_seg_ss, sh_ctxt)->attr.fields.dpl == 3 ) { gdprintk(XENLOG_DEBUG, "User-mode write to pagetable reached " "emulate_map_dest(). This should never happen!\n"); -- 2.30.2